<template>
<div>
  <el-row :gutter="20" class="mb8">
    <el-col :span="1.5">
      <el-button type="primary" icon="check-circle" plain size="mini" @click="Test2()">测试组件</el-button>
    </el-col>
  </el-row>

<processForm ref="processForm" :processFormData="processFormData" :processKey="processKey" :taskId="taskId"></processForm>
</div>
</template>

<script>
  import processForm from '@/components/oa/processForm/index.vue'

  import {initProcessFormData} from "@/api/process/processForm.js";



  export default {
    name: "test4",
    components: {
      processForm
    },

    data() {
      return {
        processFormData:{
          // routerData:[{id:0,routerName:"送室经理审核",userTasks:[{userTaskName:"室审核",userTaskId:"T001",userChoiceType:"null",singleUser:true},{userTaskName:"中心审核",userTaskId:"T002",userChoiceType:"103",singleUser:true}]},{id:1,routerName:"送部门审核",userTasks:[{userTaskName:"部门审核",userTaskId:"T003",userChoiceType:"null",singleUser:true}]}],
          // remarkOptions:[{value:"0",label:"同意"},{value:"1",label:"不同意"}]
        },
        processKey:"Gsfw",
        taskId:"null",

      }
    },
    created() {

    },
    methods: {
      Test2(){
        this.$refs.processForm.showProcessFormDialog(true);
        console.log("-->：", this.processKey + "," + this.taskId);
        initProcessFormData(this.processKey, this.taskId).then(response => {
          this.processFormData = response.data;
        });
        console.log("后端请求来的数据：", this.processFormData);

      },
    },



  }
</script>

<style>

</style>
